﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.ObjectModel;

namespace GuessTheWordsEditor.Model
{
    /// <summary>
    /// 词条信息
    /// </summary>
    public class WordInfoModel : DependencyObject
    {
        /// <summary>
        /// 答案
        /// </summary>
        public String Result
        {
            get { return (String)GetValue(ResultProperty); }
            set { SetValue(ResultProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Result.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ResultProperty =
            DependencyProperty.Register("Result", typeof(String), typeof(WordInfoModel));

        public String Pinyin
        {
            get { return (String)GetValue(PinyinProperty); }
            set { SetValue(PinyinProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Pinyin.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty PinyinProperty =
            DependencyProperty.Register("Pinyin", typeof(String), typeof(WordInfoModel));

        public String Describe
        {
            get { return ( String)GetValue(DescribeProperty); }
            set { SetValue(DescribeProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Describe.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty DescribeProperty =
            DependencyProperty.Register("Describe", typeof( String), typeof(WordInfoModel));



        public String Status
        {
            get { return (String)GetValue(StatusProperty); }
            set { SetValue(StatusProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Status.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty StatusProperty =
            DependencyProperty.Register("Status", typeof(String), typeof(WordInfoModel));

        
        
    }

    public class WordInfoModelCollection : ObservableCollection<WordInfoModel>
    { }
}
